package com.ssy.lingxi.order.model.bo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 新增订单时，校验订单商品信息结果
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-22
 */
public class OrderProductCheckBO implements Serializable {
    private static final long serialVersionUID = 585472462616351629L;

    public OrderProductCheckBO(BigDecimal productAmount, Boolean needConsignee, List<Long> cartIds) {
        this.productAmount = productAmount;
        this.needConsignee = needConsignee;
        this.cartIds = cartIds;
    }

    /**
     * 订单商品总金额
     */
    private BigDecimal productAmount;

    /**
     * 如果订单商品中包含“物流”的配送方式，则需要订单接收人信息
     */
    private Boolean needConsignee;

    /**
     * 商品购物车Id列表
     */
    private List<Long> cartIds;

    public BigDecimal getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(BigDecimal productAmount) {
        this.productAmount = productAmount;
    }

    public Boolean getNeedConsignee() {
        return needConsignee;
    }

    public void setNeedConsignee(Boolean needConsignee) {
        this.needConsignee = needConsignee;
    }

    public List<Long> getCartIds() {
        return cartIds;
    }

    public void setCartIds(List<Long> cartIds) {
        this.cartIds = cartIds;
    }
}
